export interface loginForm {
  username: string;
  password: string;
}

// 全部接口返回数据都有的ts类型
export interface ResponseDate {
  code: number;
  message: string;
  ok: boolean;
}

// 登录接口返回的数据类型
export interface loginResponseData extends ResponseDate {
  data: string;
}

// 获取信息返回的类型
export interface InfoReponseDate {
  routes: string[];
  buttons: string[];
  roles: string[];
  name: string;
  avatar: string;
}

export interface userInfoReponseDate extends ResponseDate {
  data: InfoReponseDate;
}
